package com.example.administrator.recycledemo;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * Created by Administrator on 2017/2/17 0017.
 */

public class MyRecycleAdapterHolder extends RecyclerView.ViewHolder {
    public ImageView iv_item_icon;
    public TextView tv_item;

    public MyRecycleAdapterHolder(View itemView) {
        super(itemView);
    }

    public MyRecycleAdapterHolder(View itemView, int viewType) {
        super(itemView);
        initView(itemView, viewType);
    }

    private void initView(View itemView, int viewType) {
        iv_item_icon = (ImageView) itemView.findViewById(R.id.iv_item_icon);
        tv_item = (TextView) itemView.findViewById(R.id.tv_item);
    }
}
